
<include file="Public:header" />
<include file="Public:menu" />
<div  id="main_content_wrap" class="container_12">
  <div class="container_12 boxbody">
    <h2>
      管理员列表
      <a href="{:U('Index/add')}" style="position: absolute;right: 18%;background-color: #6f97e9"class="button fr mr10">添加超级管理员</a>
      <a href="{:U('Admin/add')}" style="position: absolute;right: 10%;background-color: #6f97e9" class="button fr mr10">添加用户管理员</a>
    </h2>
    <div class="cb">
      <form action="" method='POST'>
        <div class="cb">
          <input type="text" name='search_phone' value="{$filter['search_phone']}" class="text size" size='20' placeholder='请输入手机号查询'/>
          <input type="hidden" name="m" value="{$m}" />
          <input type="hidden" name="c" value="{$c}" />
          <input type="hidden" name="a" value="{$a}" />
          <input type='submit' class="button listSearch" style="float: left;background-color: #6f97e9"value='搜索' />
        </div>
      </form>
    </div>
    <div class="clearfix">&nbsp;</div>
    <if condition="$num neq 0">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <th class="c" width="" scope="col">会员名</th>
          <th class="c" width="" scope="col">手机号</th>
          <th class="c" width="" scope="col">操作</th>
        </tr>
        <foreach name="admin" item="item">
          <tr>
            <td class="c" scope="col">{$item.name}</td>
            <td class="c" scope="col">{$item.phone}</td>
            <if condition="$item.superadmin eq 1">
              <td class="c" scope="col">
                <a href="{:U('Admin/add',array('id'=>$item['id']))}">编辑</a>
                <a href="{:U('Admin/delete',array('id'=>$item['id']))}">删除</a>
              </td>
              <else />
              <td class="c" scope="col" style="color: red">超级管理员</td>
            </if>
          </tr>
        </foreach>
      </table>
      <else />
      <h1 style="text-align: center">没有数据</h1>
    </if>
    <!-- END TABULAR DATA EXAMPLE -->
    <div class="grid_12">
      <div class="clearfix">&nbsp;</div>
      <div id="pagination">
        {$page}
      </div>
    </div>
    <div class="clearfix">&nbsp;</div>
  </div>
  <include file="Public:footer" />
</div>